<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <base href="./" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="./css/main.css" />
</head>
<body>
<div class="container">
    <header>
        <div onclick="history.back()" class="back"></div>
        运动员简介
    </header>
    <h1 class="title">
        ${list[0].athletesName}
    </h1>

    <div class="tab-body" style="min-height: 40vh; line-height: 1.7; padding: .6rem;">
        <img src="admin/down.let?file=${list[0].athletesImg}" style="display: block; margin: 0 auto; max-width: 50%;height: 50%; border: solid .3rem var(--c-white-1); border-radius: .2rem; box-shadow:  0 0 1rem var(--c-blue-3);" />
        <table class="table table-1" style="border: solid .1rem var(--c-blue-1); margin: .5rem 0; border-radius: .3rem;">
            <tbody>

            <tr>
                <th>姓名</th>
                <td>${list[0].athletesName}</td>
                <th>国家</th>
                <td>${list[0].countryName}</td>
            </tr>
            <tr>
                <th>性别</th>
                <td>${list[0].athletesSex ==1 ? '男' : '女'}</td>
                <th>出生日期</th>
                <td>${list[0].athletesBirthdate}</td>
            </tr>
            <tr>
                <th>身高</th>
                <td>${list[0].athletesHeight}CM</td>
                <th>体重</th>
                <td>${list[0].athletesWeight}KG</td>
            </tr>
            </tbody>
        </table>
    <p>${list[0].athletesBrief}</p>
    </div>
    <h1 class="title-1">
        获奖情况
    </h1>
    <div class="tab-body" style="min-height: auto;">
        <div>
            <table class="table table-1">
                <thead>
                <tr>
                    <th width="25%">日期</th>
                    <th>项目</th>
                    <th width="12%">名次</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="item">
                <tr>
                    <td>${item.awardDate}</td>
                    <td data-spm-anchor-id="0.0.0.i5"><a href="sporting.let?sportingName=${item.sportingName}">${item.sportingName}</a></td>
                    <td>
                        <c:if test="${item.awardRanking==1}">金牌</c:if>
                        <c:if test="${item.awardRanking==2}">银牌</c:if>
                        <c:if test="${item.awardRanking==3}">铜牌</c:if>
                    </td>
                </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>

</div>
</body>
</html>

